package com.meteor.convert;

import com.meteor.entity.Publicity;
import com.meteor.vo.PublicityVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface PublicityConvert {

    PublicityConvert INSTANCE = Mappers.getMapper(PublicityConvert.class);

    PublicityVO convert(Publicity entity);

    Publicity convert(PublicityVO vo);

    List<PublicityVO> convertList(List<Publicity> list);

}
